package com.atguigu.sms.api;

import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.sms.vo.ItemSaleVo;
import com.atguigu.sms.vo.SkuSaleVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @description:
 * @author: xie.zh
 * @create: 2021.03.12   16:02
 * @version: 1.0
 */
public interface GmallSmsApi {
    @PostMapping("sms/skubounds/sales/save")
    public ResponseVo saveSales(@RequestBody SkuSaleVo saleVo);

    /**
     * 根据skuID查询营销信息
     *
     * @param skuId
     * @return
     */
    @GetMapping("sms/skubounds/sales/{skuId}")
    public ResponseVo<List<ItemSaleVo>> querySalesBySkuId(@PathVariable("skuId") Long skuId);
}
